﻿using System.Threading.Tasks;

namespace Xms.Abp.Emailing;

/// <summary>
/// This service can be used simply sending emails.
/// </summary>
public interface IEmailSender
{
    /// <summary>
    /// Sends an email.
    /// </summary>
    Task SendAsync(EmailMessage emailMessage);

    /// <summary>
    /// Adds an email to queue to send via background jobs.
    /// </summary>
    Task QueueAsync(EmailMessage emailMessage);
}
